﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for B_Sales
/// </summary>
/// 
namespace Bestlife.ERP.BusinessRules
{
    public class B_Sales
    {
        public B_Sales()
        {
            //
            // TODO: Add constructor logic here
            //
        }

        public static Bestlife.ERP.Entities.E_Sales sales(string rid)
        {
            return Bestlife.ERP.DataAccess.D_Sales.sales(rid);
        }

        public static Boolean upd_recipt(string rid,string user)
        {
            return Bestlife.ERP.DataAccess.D_Sales.upd_recipt(rid,user);
        }

        public static Boolean upd_stock(List<Bestlife.ERP.Entities.E_Sales> sales, string user, int itemcount)
        {
            return Bestlife.ERP.DataAccess.D_Sales.upd_stock(sales, user, itemcount);
        }
        public static Boolean del_recipt(string rid)
        {
            return Bestlife.ERP.DataAccess.D_Sales.del_receipt(rid);
        }

        public static Boolean upd_stockkandy(List<Bestlife.ERP.Entities.E_Sales> sales, string user, int itemcount)
        {
            return Bestlife.ERP.DataAccess.D_Sales.upd_stockkandy(sales, user, itemcount);
        }
    }
}